package com.cy.demo1.entity;

import java.io.Serializable;
import java.util.Objects;

public class Result1 extends BaseEntity implements Serializable {

    private Integer projectId;	/*项目ID，每次自动加1*/
    private String projectName; /*项目名*/
    private float acc;
    private  float pre;
    private float rec;
    private float f1;
    public String rocx;

    public String rocy;
    private float auc;

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public float getAcc() {
        return acc;
    }

    public void setAcc(float acc) {
        this.acc = acc;
    }

    public float getPre() {
        return pre;
    }

    public void setPre(float pre) {
        this.pre = pre;
    }

    public float getRec() {
        return rec;
    }

    public void setRec(float rec) {
        this.rec = rec;
    }

    public float getF1() {
        return f1;
    }

    public void setF1(float f1) {
        this.f1 = f1;
    }

    public String getRocx() {
        return rocx;
    }

    public void setRocx(String rocx) {
        this.rocx = rocx;
    }

    public String getRocy() {
        return rocy;
    }

    public void setRocy(String rocy) {
        this.rocy = rocy;
    }

    public float getAuc() {
        return auc;
    }

    public void setAuc(float auc) {
        this.auc = auc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Result1 result1 = (Result1) o;
        return Float.compare(result1.acc, acc) == 0 && Float.compare(result1.pre, pre) == 0 && Float.compare(result1.rec, rec) == 0 && Float.compare(result1.f1, f1) == 0 && Float.compare(result1.auc, auc) == 0 && projectId.equals(result1.projectId) && projectName.equals(result1.projectName) && rocx.equals(result1.rocx) && rocy.equals(result1.rocy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(projectId, projectName, acc, pre, rec, f1, rocx, rocy, auc);
    }

    @Override
    public String toString() {
        return "Result1{" +
                "projectId=" + projectId +
                ", projectName='" + projectName + '\'' +
                ", acc=" + acc +
                ", pre=" + pre +
                ", rec=" + rec +
                ", f1=" + f1 +
                ", rocx='" + rocx + '\'' +
                ", rocy='" + rocy + '\'' +
                ", auc=" + auc +
                '}';
    }
}
